/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f7fa;
    height: 100%;
    font-size: 14px;
    color: #303133;
    overflow-x: hidden;
}

html, body, #app {
    height: 100%;
}

.el-container {
    height: 100%;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #001529;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: width 0.28s;
    overflow-y: auto;
    z-index: 10;
    position: relative;
}

.sidebar .logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #001529;
}

.sidebar .logo i {
    font-size: 24px;
    margin-right: 8px;
}

.sidebar .logo h3 {
    margin: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #b3b3b3;
    background-color: #001529;
    font-size: 12px;
}

.el-menu {
    border-right: none !important;
}

.el-menu-item {
    height: 50px;
    line-height: 50px;
}

.el-menu-item.is-active {
    background-color: #1890ff !important;
    color: #fff !important;
}

.el-menu-item:hover {
    background-color: #0c2135 !important;
}

.main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.el-header {
    background: #fff;
    color: #606266;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    position: relative;
    z-index: 9;
    height: 80px !important;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h2 {
    margin: 0 0 0 15px;
    font-size: 18px;
    font-weight: 500;
    color: #303133;
}

.toggle-button {
    font-size: 20px;
    cursor: pointer;
    color: #606266;
    transition: all 0.3s;
}

.toggle-button:hover {
    color: #1890ff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-name {
    margin: 0 5px;
    color: #606266;
}

.el-dropdown-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* 主内容区域样式 */
.el-main {
    padding: 20px;
    background-color: #f5f7fa;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.el-card.box-card {
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

/* 搜索区域样式 */
.search-row {
    margin-bottom: 20px;
    background-color: #f8f9fb;
    padding: 15px;
    border-radius: 8px;
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.el-table th {
    background-color: #f5f7fa !important;
    color: #303133;
    font-weight: bold;
    border-bottom: 1px solid #EBEEF5;
}

.el-table td {
    padding: 12px 0;
}

.el-table .warning-row {
    background-color: #fdf6ec;
}

.el-table .success-row {
    background-color: #f0f9eb;
}

.el-table .danger-row {
    background-color: #fef0f0;
}

.el-table__row:hover > td {
    background-color: #f0f9ff;
}

.browser-tag {
    margin-right: 5px;
    margin-bottom: 5px;
}

.danger-text {
    color: #f56c6c;
}

.danger-text:hover {
    color: #f78989;
}

/* 分页样式 */
.pagination-container {
    padding: 15px 0;
    text-align: right;
}

/* 详情对话框样式 */
.detail-dialog .el-dialog__body {
    padding: 10px 20px;
}

.detail-card {
    margin-bottom: 20px;
}

.detail-card .el-card__header {
    padding: 12px 20px;
    font-weight: 500;
}

/* 用户信息头部 */
.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-main {
    display: flex;
    align-items: center;
}

.user-icon {
    font-size: 36px;
    color: #409EFF;
    margin-right: 15px;
    background-color: #ecf5ff;
    padding: 10px;
    border-radius: 50%;
}

.user-info-content {
    margin-left: 15px;
}

.user-info-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.user-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.user-info-actions {
    display: flex;
    gap: 10px;
}

/* 分组和标题容器 */
.group-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-title {
    font-weight: 500;
    color: #303133;
}

.group-status-tag {
    vertical-align: middle;
}

/* 空数据样式 */
.empty-data {
    text-align: center;
    padding: 30px 0;
    color: #909399;
}

.empty-data i {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-data p {
    margin: 0;
    font-size: 14px;
}

/* 按钮样式 */
.el-button {
    font-weight: 400;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .el-dialog {
        width: 95% !important;
    }
    
    .search-row .el-form-item {
        margin-bottom: 10px;
    }
    
    .user-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 64px !important;
    }

    .sidebar .logo h3 {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }
    
    .el-main {
        padding: 15px 10px;
    }
    
    .header-left h2 {
        font-size: 16px;
    }
}

/* 标签样式增强 */
.el-tag--success {
    background-color: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
}

.el-tag--danger {
    background-color: #fef0f0;
    border-color: #fde2e2;
    color: #f56c6c;
}

.el-tag--warning {
    background-color: #fdf6ec;
    border-color: #faecd8;
    color: #e6a23c;
}

.el-tag--info {
    background-color: #f4f4f5;
    border-color: #e9e9eb;
    color: #909399;
}

.el-tag--primary {
    background-color: #ecf5ff;
    border-color: #d9ecff;
    color: #409EFF;
}

/* 激活浏览器对话框样式 */
.activate-result {
    margin-top: 20px;
}

.activate-result-details {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.mt-3 {
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

/* 表格行鼠标悬停效果 */
.el-table--enable-row-hover .el-table__body tr:hover > td {
    background-color: #f0f9ff;
}

/* 危险行样式 */
.danger-row td {
    background-color: #fff0f0 !important;
}

/* 操作按钮样式 */
.operate-button {
    padding: 4px 8px;
    margin-right: 5px;
}

.operate-button + .operate-button {
    margin-left: 5px;
}

/* 在小屏幕上确保操作按钮正常显示 */
@media (max-width: 768px) {
    .el-button--text {
        padding: 4px 8px;
        margin: 2px;
    }
    
    .el-table .cell {
        white-space: nowrap;
    }
} 

/* 应用代理对话框 - 表格行高亮样式 */
.el-table .proxy-match-row {
    background-color: #f0f0f0 !important; /* 银灰色 */
  }
  
  .el-table .proxy-match-row:hover > td {
    background-color: #e5e5e5 !important; /* 悬停时颜色加深一点 */
  }
  
  .el-table .proxy-mismatch-row {
    background-color: #e0f2f1 !important; /* 较浅的青绿色 */
  }
  
  .el-table .proxy-mismatch-row:hover > td {
    background-color: #c8e6c9 !important; /* 悬停时颜色加深一点 */
  }
  
  /* 确保选中行的样式优先级更高 */
  .el-table__body tr.current-row.proxy-match-row > td,
  .el-table__body tr.hover-row.proxy-match-row > td {
      background-color: #e5e5e5 !important;
  }
  
  .el-table__body tr.current-row.proxy-mismatch-row > td,
  .el-table__body tr.hover-row.proxy-mismatch-row > td {
      background-color: #c8e6c9 !important;
  }

  /* 应用代理对话框 - 表格样式优化 */

/* 整体表格边框和内边距调整 */
#app .el-dialog__wrapper.apply-proxy-dialog .el-table--border th,
#app .el-dialog__wrapper.apply-proxy-dialog .el-table--border td {
    border-right: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    padding: 8px 5px; /* 减小垂直内边距，适当调整水平内边距 */
}

#app .el-dialog__wrapper.apply-proxy-dialog .el-table--border th {
    background-color: #f8f8f9; /* 表头背景色稍浅 */
}

/* 分组开始行的顶部边框，强化分组感 */
.el-table .group-start-row td {
    border-top: 2px solid #dcdfe6 !important; /* 加粗的上边框 */
}

/* 调整高亮背景色，使其不那么刺眼 */
.el-table .proxy-match-row {
  background-color: #f5f5f5 !important; /* 稍微浅一点的银灰色 */
}

.el-table .proxy-mismatch-row {
  background-color: #e6fffa !important; /* 稍微浅一点的青绿色 */
}

/* 调整悬停颜色 */
.el-table .proxy-match-row:hover > td {
  background-color: #ebebeb !important;
}

.el-table .proxy-mismatch-row:hover > td {
  background-color: #d1f7f0 !important;
}

/* 调整选中行样式，确保背景色能覆盖 */
.el-table__body tr.current-row.proxy-match-row > td,
.el-table__body tr.hover-row.proxy-match-row > td {
    background-color: #ebebeb !important;
}

.el-table__body tr.current-row.proxy-mismatch-row > td,
.el-table__body tr.hover-row.proxy-mismatch-row > td {
    background-color: #d1f7f0 !important;
}

/* 给 tooltip 增加一点样式 */
.el-tooltip__popper {
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 8px;
}